const {
  applicationConfig,
  applicationConfig: { pixel: { width, height } }
} = require('./src/config/applicationConfig.js')
const StateMachine = require('./src/machine/StateMachine')
const instance = StateMachine(applicationConfig)
init()
instance.run()

// 启动提示语句
const startMsg = `当前通过${applicationConfig.env}模式启动。`
toast(startMsg + ', AutoX已经启动！')

function init() {
  auto.waitFor()
  setScreenMetrics(width, height)
}
